package cn.tedu.sp04.Service;

import cn.tedu.sp1.Web.Util.JsonResult;
import cn.tedu.sp1.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import javax.ws.rs.Path;
import java.util.List;
@FeignClient(name = "user-service")
public interface UserCilent {
    @GetMapping("{userId}")
    JsonResult<User> getUser (@PathVariable Integer Id);
    @GetMapping("{userId}/score")
    JsonResult<?> addScore(@PathVariable Integer Id
            ,@RequestParam("Score") Integer Score);
}
